.class Lcom/TwinBlade/PicturePassword/ba;
.super Landroid/os/AsyncTask;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/PayPalKey;


# direct methods
.method private constructor <init>(Lcom/TwinBlade/PicturePassword/PayPalKey;)V
    .locals 0
    .parameter

    .prologue
    .line 101
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/TwinBlade/PicturePassword/PayPalKey;Lcom/TwinBlade/PicturePassword/ba;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 101
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/ba;-><init>(Lcom/TwinBlade/PicturePassword/PayPalKey;)V

    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/ba;)Lcom/TwinBlade/PicturePassword/PayPalKey;
    .locals 1
    .parameter

    .prologue
    .line 101
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    return-object v0
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x1

    .line 109
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "APP-1PK95433T40838451"

    invoke-static {v0, v1, v5}, Lcom/paypal/android/MEP/e;->a(Landroid/content/Context;Ljava/lang/String;I)Lcom/paypal/android/MEP/e;

    move-result-object v0

    .line 110
    const-string v1, "en_US"

    invoke-virtual {v0, v1}, Lcom/paypal/android/MEP/e;->a(Ljava/lang/String;)V

    .line 111
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v2

    const/4 v3, 0x2

    const/4 v4, 0x0

    invoke-virtual {v0, v2, v3, v4}, Lcom/paypal/android/MEP/e;->a(Landroid/content/Context;II)Lcom/paypal/android/MEP/a;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;Lcom/paypal/android/MEP/a;)V

    .line 112
    invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 116
    new-instance v1, Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 117
    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 119
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    .line 120
    const/4 v2, -0x1

    const/4 v3, -0x2

    .line 119
    invoke-direct {v0, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 121
    const/16 v2, 0x23

    invoke-virtual {v0, v4, v4, v4, v2}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 123
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/PayPalKey;->c(Lcom/TwinBlade/PicturePassword/PayPalKey;)Lcom/paypal/android/MEP/a;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/paypal/android/MEP/a;->setId(I)V

    .line 124
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/PayPalKey;->c(Lcom/TwinBlade/PicturePassword/PayPalKey;)Lcom/paypal/android/MEP/a;

    move-result-object v2

    new-instance v3, Lcom/TwinBlade/PicturePassword/bb;

    invoke-direct {v3, p0}, Lcom/TwinBlade/PicturePassword/bb;-><init>(Lcom/TwinBlade/PicturePassword/ba;)V

    invoke-virtual {v2, v3}, Lcom/paypal/android/MEP/a;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 130
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/PayPalKey;->c(Lcom/TwinBlade/PicturePassword/PayPalKey;)Lcom/paypal/android/MEP/a;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 132
    new-instance v0, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v0, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 133
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    const v3, 0x7f0900a2

    invoke-virtual {v2, v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 134
    const/high16 v2, 0x41a0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextSize(F)V

    .line 135
    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 137
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    new-instance v2, Landroid/widget/EditText;

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lcom/TwinBlade/PicturePassword/PayPalKey;->a:Landroid/widget/EditText;

    .line 138
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    iget-object v0, v0, Lcom/TwinBlade/PicturePassword/PayPalKey;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 139
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 140
    const-string v0, "PayPalKey"

    const-string v3, "-1"

    invoke-interface {v2, v0, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 141
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    iget-object v3, v3, Lcom/TwinBlade/PicturePassword/PayPalKey;->a:Landroid/widget/EditText;

    const-string v4, "-1"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    const-string v0, ""

    :cond_0
    invoke-virtual {v3, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 143
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    new-instance v3, Landroid/widget/Button;

    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v4}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;Landroid/widget/Button;)V

    .line 144
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->e(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/widget/Button;

    move-result-object v0

    const/4 v3, 0x2

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setId(I)V

    .line 145
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->e(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/widget/Button;

    move-result-object v0

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    const v4, 0x7f0900a1

    invoke-virtual {v3, v4}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 146
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->e(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/widget/Button;

    move-result-object v0

    new-instance v3, Lcom/TwinBlade/PicturePassword/bc;

    invoke-direct {v3, p0, v2}, Lcom/TwinBlade/PicturePassword/bc;-><init>(Lcom/TwinBlade/PicturePassword/ba;Landroid/content/SharedPreferences;)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 156
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->e(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 158
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->setContentView(Landroid/view/View;)V

    .line 161
    :try_start_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->b(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 164
    :goto_0
    return-void

    .line 162
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/ba;->a([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/ba;->a(Ljava/lang/Boolean;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 5

    .prologue
    .line 103
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    const v3, 0x7f0900a4

    invoke-virtual {v2, v3}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    const v4, 0x7f0900a5

    invoke-virtual {v3, v4}, Lcom/TwinBlade/PicturePassword/PayPalKey;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    invoke-static {v1, v2, v3, v4}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->a(Lcom/TwinBlade/PicturePassword/PayPalKey;Landroid/app/Dialog;)V

    .line 104
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->b(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/app/Dialog;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 105
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ba;->a:Lcom/TwinBlade/PicturePassword/PayPalKey;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/PayPalKey;->b(Lcom/TwinBlade/PicturePassword/PayPalKey;)Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 106
    return-void
.end method
